from random import randint

print("WELCOME")
print("This is our game of chance")
print("Let's see if you won...")
roll=input("what is your guess on the dice roll?")
coin_flip=input("What is your guess on the coin flip, Heads(H) or Tails(T)?")
spinner=input("What is your guess on the spinner, red(r), green(g), blue(b), or yellow(y)?")

R = int(randint(1,6))
print("you rolled a",R)

C = int(randint(0,1))
coin_random = C
coin_name = ""
if coin_random == 0:
    print("You flipped a Head")
    coin_name = "H"
elif coin_random == 1:
    print("You flipped a Tail")
    coin_name = "T"

S = int(randint(0,3))
spinner_name = ""
spinner_random = S
if spinner_random == 0:
    print("You spun red")
    spinner_name ="r"
elif spinner_random == 1:
    print("You spun green")
    spinner_name = "g"
elif spinner_random == 2:
    print("You spun blue")
    spinner_name = "b"
elif spinner_random == 3:
    print("You spun yellow")
    spinner_name = "y"

if roll == R:
    print("You got the dice correct")
if coin_flip == coin_name:
    print("You got the coin flip correct")
if spinner == spinner_name:
    print("You got the spin correct")

if roll != R and coin_flip != coin_name and spinner != spinner_name:
    print("You guess all wrong!")